import request from '@/router/axios';

//获取押运员列表
export const getList = (current, size, params) => {
    return request({
        url: '/api/blade-tms/supercargoinfo/EscortManagementController/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}
//押运员新增/编辑
export const update = (data) => {
    return request({
        url: '/api/blade-tms/supercargoinfo/EscortManagementController/saveOrUpdate',
        method: 'post',
        data: {
            ...data,
        }
    })
}
//押运员删除
export const deleteSupercargo = (data) => {
    return request({
        url: '/api/blade-tms/supercargoinfo/EscortManagementController/delete',
        method: 'post',
        data: {
            ...data,
        }
    })
}
//获取押运员资质审查列表
export const getQualificationReviewList = (current, size, params) => {
    return request({
        url: '/api/blade-tms/supercargoinfo/EscortManagementController/qualificationReview',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}
//押运员审核
export const supercargoCheck = (data) => {
    return request({
        url: '/api/blade-tms/supercargoinfo/EscortManagementController/check',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        transformRequest(data) {
            return data
        },
        data: JSON.stringify(data)
    })
}
//司机资质审查承运商列表
export const getQualificationReviewCarrierList = (params) => {
    return request({
        url: '/api/blade-tms/supercargoinfo/EscortManagementController/qualificationReviewCarrierList',
        method: 'get',
        params: {
            ...params
        }
    })
}